1.安裝 vim
首先先安裝 Vim,Vim就不在多解釋了 畢竟網路上的 Vim文章很多
sudo apt install vim
2.編譯 sources
使用 vim 編譯 sources.list
sudo vim /etc/apt/sources.list
在最下面增加這幾段更新的位置
deb http://us.archive.ubuntu.com/ubuntu trusty main universe
deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
3.更新與安裝 GCC/Java
執行更新
sudo apt-get update
最後來安裝 GCC/Java
sudo apt-get install -y git gcc lib32stdc++6 gnupg flex bison gperf build-essential zip
sudo apt-get install -y curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline-dev:i386 g++-multilib mingw32 tofrodos libgl1-mesa-dev python-markdown libxml2-utils xsltproc zlib1g-dev:i386 gcc-multilib
sudo apt-get install libswitch-perl libssl-dev libncurses5 libncurses5-dev
sudo apt-get install gperf libxml2-utils make python-networkx zlib1g-dev:i386 zip build-essential
大致上這樣我們就將環境設定完成了
如果不想手動處理也可以直接這樣設定,不過有時候手動反而比較簡單
sudo apt-get update
sudo apt-get install -y curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 g++-multilib mingw32 tofrodos libgl1-mesa-dev python-markdown libxml2-utils xsltproc zlib1g-dev:i386 gcc-multilib
sudo apt-get install -y curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline-dev:i386 g++-multilib mingw32 tofrodos libgl1-mesa-dev python-markdown libxml2-utils xsltproc zlib1g-dev:i386
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk